<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
<title>控制弹出窗口居中显示</title>
<style type="text/css">
*{
font-size:14px;
margin:0px;
padding:0px;}
td{
color:#FFFFFF;
}
</style>
<script type="text/javascript">
function mycheck(myform)
{
if (myform.Manager.value=="")
{alert("请输入管理员！");myform.Manager.focus();return;}
if(myform.PWD.value=="")
{alert("请输入密码！");myform.PWD.focus();return;}
myform.submit();
}
</script>
</head>

<body>
<table width="322" height="206"  border="1" cellpadding="0" cellspacing="0">
  <tr>
    <td height="153" valign="top" background="Images/Login_M_Top.gif"><table width="100%" height="153"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td>
		<form method="post" action="" name="myform">
		  <table width="100%"  border="0" cellspacing="-2" cellpadding="-2">
            <tr>
              <td width="20" height="65">&nbsp;</td>
              <td width="82">&nbsp;</td>
              <td width="200">&nbsp;</td>
              <td width="20">&nbsp;</td>
            </tr>
            <tr>
              <td height="34">&nbsp;</td>
              <td align="center" class="word">&nbsp;&nbsp;管理员：</td>
              <td><input name="Manager" type="text" class="txt_grey" id="Manager3"onKeyDown="if(event.keyCode==13) myform.PWD.focus();" maxlength="20"></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td height="34">&nbsp;</td>
              <td align="center" class="word">&nbsp;&nbsp;密&nbsp;&nbsp;码：</td>
              <td><input name="PWD" type="password" class="txt_grey" id="PWD" onKeyDown="if(event.keyCode==13) mycheck(myform)" maxlength="20"></td>
              <td>&nbsp;</td>
            </tr>
          </table>
		
	    </form></td>
      </tr>
    </table>
	</td>
  </tr>
  <tr>
    <td><img src="Images/Login_M_bottom.gif" width="322" height="53" border="0" usemap="#Map"></td>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="164,8,246,26" href="#" onClick="window.close();">
  <area shape="rect" coords="76,8,158,26" href="#" onClick="mycheck(myform)">
</map>
</body>
</html>
